package com.zero.entity;

import com.zero.util.Page;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Loan extends Page{

    private Integer id;

    /**
     * 借贷金额
     */
    private BigDecimal money;

    /**
     * 清算后的金额
     */
    private BigDecimal rMoney;

    private Integer memberId;

    private Integer familyId;

    private Date startDate;

    private Date endDate;

    /**
     * 借贷类型：0代表借出， 1代表借入
     */
    private Integer type;

    /**
     * 借贷记录的状态：0：代表未清算， 1代表已清算
     */
    private Integer status;

    private String remark;

    /**
     * 用于标记该记录是否属于登录者
     */
    private Integer flag;

    private FamilyMember familyMember;

}


